﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using Castle.ActiveRecord.Framework;
using Castle.ActiveRecord;
using SimplePMT.Data;

namespace SimplePMT
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            IConfigurationSource source = ConfigurationManager.GetSection("activerecord") as IConfigurationSource;
            ActiveRecordStarter.Initialize(typeof(Task).Assembly, source);

        }

       
        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}